const arr = ["a", undefined, null, {}];

// next访问
const iter = arr.entries();
console.log("iter:", iter);
console.log("next:", iter.next());

// for of迭代
for (let [k, v] of arr.entries()) {
  console.log(k, v);
}
